﻿@model CRMnewm.AccountsNabor

@{
    ViewBag.Title = "Edit";
}

<h2>Редактирование</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Аккаунт</legend>

@*        <div class="editor-label">
            @Html.LabelFor(model => model.Accounts_id)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Accounts_id)
            @Html.ValidationMessageFor(model => model.Accounts_id)
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.Family)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Family)
            @Html.ValidationMessageFor(model => model.Family)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Surname)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Surname)
            @Html.ValidationMessageFor(model => model.Surname)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Sex)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Sex)
            @Html.ValidationMessageFor(model => model.Sex)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Country)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Country)
            @Html.ValidationMessageFor(model => model.Country)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Region)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Region)
            @Html.ValidationMessageFor(model => model.Region)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.E_mail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.E_mail)
            @Html.ValidationMessageFor(model => model.E_mail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Web_site)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Web_site)
            @Html.ValidationMessageFor(model => model.Web_site)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Osebe)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Osebe)
            @Html.ValidationMessageFor(model => model.Osebe)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
